package usf.gwt.ui.bootstrap.client;

import com.google.gwt.dom.client.ButtonElement;
import com.google.gwt.dom.client.Document;
import com.google.gwt.dom.client.Element;

public class DesmissibleMenuItem extends NavItem {

    protected ButtonElement close;

    @Override
    protected Element initWidget() {
    	Element e = super.initWidget();
        close = Document.get().createPushButtonElement();
        close.setClassName("btn btn-link close");
        Element span = Document.get().createSpanElement();
        span.setClassName("glyphicon glyphicon-remove single h6");
        close.appendChild(span);
        e.insertFirst(close);
        return e;
    }

}
